 <% form_remote_for(:chat, :url =>project_ims_path(params[:project_id]) + "/create",:html=>{:method=>'put'},:complete=>"$('chat_message').value=''") do |f| %>
  <%= f.hidden_field :user_id,:value=>@cur_user.id.to_s%>
  <%= f.hidden_field :channel_id,:value=>params[:channel_id]%>
  <%= f.text_field :message,:style=>"width:620px;height:50px;" %>
  <%= submit_tag "Talk".t,:style=>"font-weight:bold;width:620px;" %>
 <% end %>

